package com.xd.core.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xd.core.system.dto.RoleListDto;
import com.xd.core.system.entity.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author SJ
 * @since 2023-03-17
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {
    SysRole findRole(Integer id);

    void insertMenuIdList(@Param(value = "companyId") Integer companyId, @Param(value = "id") Integer id, @Param(value = "menuIds") List<Integer> menuIds);

    List<SysRole> roleList(@Param(value = "roleListDto") RoleListDto roleListDto,@Param(value = "companyId") Integer companyId);

}

